﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ERP.Business.DataTypes.Users.Credentials
{
    /// <summary>
    /// Credential status
    /// </summary>

    [System.Runtime.Serialization.DataContract]
    [Serializable]
    [Flags()]
    public enum CredentialStatus
    {
        /// <summary>
        /// User cannot access the module
        /// </summary>
        [XmlEnum("0")]
        AccessDenied = 0,
        /// <summary>
        /// User has full access to the module [Read + Write]
        /// </summary>
        [XmlEnum("1")]
        FullAccess = 1,
        /// <summary>
        /// User has Read only access
        /// </summary>
        [XmlEnum("2")]
        ReadOnly = 2
    }
}
